import axios from "@/axios"

export function addCategory(data) {
    return axios.post("/article_service/category", data)
}

export function updateCategory(data) {
    return axios.put("/article_service/category", data)
}

export function getCategoryPageList(data) {
    return axios.post("/article_service/category/page", data)
}


export function deleteCategory(categoryId) {
    return axios.delete(`/article_service/category/${categoryId}`)
}

export function getCategorySelect() {
    return axios.post("/article_service/category/list")
}

